/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *Repository提供数据库操作，如果要增加数据库操作请在当前目录下Partial文件夹ISys_DepartmentRepository编写接口
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Core.BaseProvider;
using VOL.Entity.DomainModels;
using VOL.Core.Extensions.AutofacManager;
namespace VOL.demo.IRepositories
{
    public partial interface ISys_DepartmentRepository : IDependency,IRepository<Sys_Department>
    {
        /// <summary>
        /// 获取部门下拉选项
        /// </summary>
        /// <returns>部门列表</returns>
        Task<List<Sys_Department>> GetDepartmentOptionsAsync();

        /// <summary>
        /// 根据部门ID获取部门信息
        /// </summary>
        /// <param name="departmentId">部门ID</param>
        /// <returns>部门信息</returns>
        Task<Sys_Department> GetDepartmentByIdAsync(string departmentId);
    }
}
